When actually returning expose events, make sure to set the count field
authorOwen Taylor <otaylor@redhat.com>
Sat, 1 Jul 2000 21:15:05 +0000 (21:15 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sat, 1 Jul 2000 21:15:05 +0000 (21:15 +0000)
Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkevents-x11.c (gdk_event_translate): When
actually returning expose events, make sure to set
the count field properly.

* gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
accidentally reintroced bug which always cleared
the graphics_exposures value.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkevents-x11.c
gdk/x11/gdkgc-x11.c

index 7315ef6dffa0c6dd9a6576d9acaf19b70418643c..e727ad6020f70c98166fd176a4f626d121d1eced 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
+       actually returning expose events, make sure to set
+       the count field properly.
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
+       accidentally reintroced bug which always cleared
+       the graphics_exposures value. 
+
 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
 
        * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
index 7315ef6dffa0c6dd9a6576d9acaf19b70418643c..e727ad6020f70c98166fd176a4f626d121d1eced 100644 (file)
@@ -1,3 +1,13 @@
+Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
+       actually returning expose events, make sure to set
+       the count field properly.
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
+       accidentally reintroced bug which always cleared
+       the graphics_exposures value. 
+
 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
 
        * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
index 7315ef6dffa0c6dd9a6576d9acaf19b70418643c..e727ad6020f70c98166fd176a4f626d121d1eced 100644 (file)
@@ -1,3 +1,13 @@
+Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
+       actually returning expose events, make sure to set
+       the count field properly.
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
+       accidentally reintroced bug which always cleared
+       the graphics_exposures value. 
+
 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
 
        * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
index 7315ef6dffa0c6dd9a6576d9acaf19b70418643c..e727ad6020f70c98166fd176a4f626d121d1eced 100644 (file)
@@ -1,3 +1,13 @@
+Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
+       actually returning expose events, make sure to set
+       the count field properly.
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
+       accidentally reintroced bug which always cleared
+       the graphics_exposures value. 
+
 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
 
        * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
index 7315ef6dffa0c6dd9a6576d9acaf19b70418643c..e727ad6020f70c98166fd176a4f626d121d1eced 100644 (file)
@@ -1,3 +1,13 @@
+Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
+       actually returning expose events, make sure to set
+       the count field properly.
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
+       accidentally reintroced bug which always cleared
+       the graphics_exposures value. 
+
 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
 
        * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
index 7315ef6dffa0c6dd9a6576d9acaf19b70418643c..e727ad6020f70c98166fd176a4f626d121d1eced 100644 (file)
@@ -1,3 +1,13 @@
+Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
+       actually returning expose events, make sure to set
+       the count field properly.
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
+       accidentally reintroced bug which always cleared
+       the graphics_exposures value. 
+
 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
 
        * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
index 7315ef6dffa0c6dd9a6576d9acaf19b70418643c..e727ad6020f70c98166fd176a4f626d121d1eced 100644 (file)
@@ -1,3 +1,13 @@
+Sat Jul  1 16:28:32 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
+       actually returning expose events, make sure to set
+       the count field properly.
+
+       * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
+       accidentally reintroced bug which always cleared
+       the graphics_exposures value. 
+
 Wed Jun 28 18:03:09 BST 2000  Tony Gale <gale@gtk.org>
 
        * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
index b9e0285c506c1883756a539c604fb0918a75bca0..0086247c004c7df4c8be9e8a809f85ea27a8f9b5 100644 (file)
@@ -819,6 +819,7 @@ gdk_event_translate (GdkEvent *event,
            event->expose.type = GDK_EXPOSE;
            event->expose.area = expose_rect;
            event->expose.window = window;
+           event->expose.count = xevent->xexpose.count;
 
            return_val = TRUE;
          }
@@ -852,6 +853,7 @@ gdk_event_translate (GdkEvent *event,
            event->expose.type = GDK_EXPOSE;
            event->expose.area = expose_rect;
            event->expose.window = window;
+           event->expose.count = xevent->xgraphicsexpose.count;
 
            return_val = TRUE;
          }
index 80e285f8567042db5bcc4e4fff80ad32224ad043..6ba305cb7631620e725b9a92a41df3559be0de5c 100644 (file)
@@ -10,8 +10,7 @@ typedef enum {
 static void gdk_x11_gc_values_to_xvalues (GdkGCValues    *values,
                                          GdkGCValuesMask mask,
                                          XGCValues      *xvalues,
-                                         unsigned long  *xvalues_mask,
-                                         gboolean        initial);
+                                         unsigned long  *xvalues_mask);
 
 static void gdk_x11_gc_get_values (GdkGC           *gc,
                                   GdkGCValues     *values);
@@ -125,10 +124,10 @@ _gdk_x11_gc_new (GdkDrawable      *drawable,
   xvalues.fill_style = FillSolid;
   xvalues.arc_mode = ArcPieSlice;
   xvalues.subwindow_mode = ClipByChildren;
-  xvalues.graphics_exposures = True;
+  xvalues.graphics_exposures = False;
   xvalues_mask = GCFunction | GCFillStyle | GCArcMode | GCSubwindowMode | GCGraphicsExposures;
 
-  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask, TRUE);
+  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask);
   
   private->xgc = XCreateGC (GDK_GC_XDISPLAY (gc),
                             GDK_DRAWABLE_IMPL_X11 (drawable)->xid,
@@ -359,7 +358,7 @@ gdk_x11_gc_set_values (GdkGC           *gc,
        }
     }
 
-  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask, FALSE);
+  gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask);
 
   XChangeGC (GDK_GC_XDISPLAY (gc),
             GDK_GC_XGC (gc),
@@ -384,18 +383,10 @@ static void
 gdk_x11_gc_values_to_xvalues (GdkGCValues    *values,
                              GdkGCValuesMask mask,
                              XGCValues      *xvalues,
-                             unsigned long  *xvalues_mask,
-                             gboolean        initial)
+                             unsigned long  *xvalues_mask)
 {
-  if (mask & GDK_GC_EXPOSURES)
-    xvalues->graphics_exposures = values->graphics_exposures;
-  else
-    xvalues->graphics_exposures = False;
-  *xvalues_mask |= GCGraphicsExposures;
-  
   /* Optimization for the common case (gdk_gc_new()) */
-  if (values == NULL ||
-      mask == 0)
+  if (values == NULL || mask == 0)
     return;
   
   if (mask & GDK_GC_FOREGROUND)
@@ -546,11 +537,6 @@ gdk_x11_gc_values_to_xvalues (GdkGCValues    *values,
       xvalues->graphics_exposures = values->graphics_exposures;
       *xvalues_mask |= GCGraphicsExposures;
     }
-  else if (initial)
-    {
-      xvalues->graphics_exposures = False;
-      *xvalues_mask |= GCGraphicsExposures;
-    }
 
   if (mask & GDK_GC_LINE_WIDTH)
     {